﻿using GraphProcessor;
using IQIGame.Onigao.Logic;
using UnityEngine;
using UnityEngine.Serialization;

namespace IQIGame.Onigao.GamePlay.Editors
{
    [System.Serializable, NodeMenuItem(SkillEditorConst.SkillEffective + "/" + SkillEditorConst.Package + "/" + SkillEditorConst.Buff, typeof(SkillEditorGraph))]
    public class EffectivePackageNode_Buff: EffectivePackageNode_Base
    {

        protected override ESkillEffectiveType actionType => ESkillEffectiveType.Buff;

        [Input("BuffID")] public SkillEffectiveAction_ParamNum buffID;
        [Input("层数")] public SkillEffectiveAction_ParamNum stack;
        [Input("外参")] public SkillEffectiveAction_ParamNum param;
        [InspectorName("移除")] public bool remove;
        
        protected override SkillCustomConfig CreateConfig()
        {
            var rConfig = new SkillEffectiveAction_Buff_ConfigData()
            {
                buffID = this.buffID,
                stack = this.stack,
                param = this.param,
                remove = this.remove
            };
            return rConfig;
        }
    }
}